Linux command string processing command -- paste
Name: paste
Location:/usr/bin/paste
Permission: All Users
Purpose: paste the corresponding two lines of multiple files together,
Us
This original article belongs to "Linux greenhouse" blog, the blog address is http://roclinux.cn. The author of the article is rocrocket.In order to prevent the vicious reproduction of some websites, special in each article before adding this information, but also hope that readers understand. ===[Start of body]In the previous article in this series, which covers the Cut command (five-minute series 19 of t
Tags: back assist strong Show copy connection version help mergeLinux Paste Command Usage detailedOriginal: http://www.xfcodes.com/linuxcmd/mulu/10211.htmLinux under the Paste command, which can be used to merge columns of files.Feature Description: Merge the columns of the file.Syntax:
In Linux, the paste command-general Linux technology-Linux programming and kernel information. The following is a detailed description. Cut is used to extract data columns or fields from text files or standard output, and then paste
without the result of quotation marks, and can only specify one character, you write a large string of-D "::::----" Still only the first character will be taken as a delimiter
Remove all line breaks
Paste File1-sThis command will delete all line breaks, that is, all lines of file1 are spelled into a whole line.Or it can be two filesPaste File1 file2-sThe result of the execution is that the co
one file into a single row for displayPaste will combine each file in a column-by-column manner.[email protected] ~]# cat >>a.txtEOF>oldboy1>Oldboy2>Oldboy3>Eof[[email protected]~]# Cat >>b.txtEOF>Oldboy4>oldboy5>Oldboy6>Eof[[email protected]~]# Cat >>c.txtEOF>Oldboy7>Oldboy8>Oldboy9>Eof[[email protected]~]# paste a.txt b.txt c.txtoldboy1 oldboy4 oldboy7oldboy2 oldboy5 oldboy8oldboy3 oldboy6 Oldboy9[[ema Il protected]~]#
Disclaimer: This blog post from Baidu Experience http://jingyan.baidu.com/article/642c9d34dcba80644a46f72d.html, thank you to share!Linux Delete directory is very simple, many people are still accustomed to use rmdir, but once the directory is not empty, it fell into deep distress, now use the RM-RF command.Direct RM is available, but add two parameters-rf that is:RM-RF directory name-R is recursive down, no matter how many levels of directory, delete
Centos vi copy and delete the cut paste command, centos Paste
Copy:
Yy: copy the current row
Nyy: Number of copied rows (including the current row ). Assume that three rows are copied, And the cursor is positioned at the position of Row 3. If you enter 3yy, 1 ~ is copied ~ 3 rows of content
Copy multiple rows in another way: (start row, end row co
"disappear !』 What if I want to write all the data to the same file? At this time, special writing is required. Please note the following![Dmtsai @ Linux ~] $ Find/home-name testing> List 2> List [Dmtsai @ Linux ~] $ Find/home-name testing> List 2> 1 Please pay special attention to this! You must use 2> 1 to write data to the same file at the same time.
[Root @ Linux
Under the WinXP:
1, click "Start → run", in the pop-up Run dialog box input cmd, click the "OK" button to open the Command Prompt window
2. First copy the command that needs to be run, click Right in the Red section of the Command Prompt window, select Edit from the pop-up shortcut menu, select Paste, and
Centosvi copy and delete the cut paste command
Copy:
Yy: copy the current row
Nyy: Number of copied rows (including the current row ). Assume that three rows are copied, And the cursor is positioned at the position of Row 3. If you enter 3yy, 1 ~ is copied ~ 3 rows of content
Copy multiple rows in another way: (start row, end row co paste position), for examp
files and press Ctrl + W.Add a number to the front of the command to indicate the number of repetitions, and add a letter to indicate the name of the buffer used.For help, use: Help [content or command].
Set Tab to 4 and automatically convert to space in VI
: Set tabstop = 4 "Force tabs to be displayed/expanded to 4 spaces (instead of default 8 ).: Set softtabstop = 4 "make Vim treat : "I don't t
example, with the @ Separator field, use the-D @.-S to merge each file into rows instead of pasting it by row.-Use standard input. For example, ls-l |paste, meaning that the output is displayed only on one column.
Example:Wangnc> PG PAS1ID897ID666ID982Wangnc> PG PAS2P.jonesS.roundL.clip
The basic Paste command pastes the PAS1 and pas2 two files into two columns:
Tag: script
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]It can be seen from the literal that the paste command and the cut command have the opposite function. The cut command extracts fields from the file line, while the
Windows is a graphical interface and an operating system operated by clicking the mouse. However, DOS-like command lines (CMD) still exist. It also allows you to conveniently and quickly maintain and manage your computer, sometimes it is still necessary to run the environment. However, if you want to copy or paste something in the command line, there will be no c
cmd command Prompt window Quick Copy Paste method general methodAt any point in the Command Prompt window, right-click and select the "Mark" command from the popup shortcut menu. At this time in the upper left corner of the window flashing a rectangular block of the cursor, move the mouse to the text area you want to c
Implementing copy-and-paste functionality in the cmd command line and PowerShell often, a friend of the command line or PowerShell will encounter this situation: Paste text is very easy, right-select paste on it, but you want to copy com
Label: POS Word Character section multiple delete line paste BSP shouldDelete command-delete character before deleting the character: x (uppercase X) Delete the character after the cursor: x (lowercase x)-word: DW Deletes the entire word, the cursor should be at the top of the word-delete the cursor before the string: d0-delete the cursor after the string: d$-Delete line: DD, delete the row of the cursor-de
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.